package piece1.chapter5;

public class Problem5_03 {

    /**
     * @param args
     */
    public static void main(String[] args) {
	// TODO 自动生成的方法存根
	int a[] = new int[10];

	for (int i = 0; i < a.length; i++) {
	    a[i] = (int) (Math.random() * 100 + 1);
	}
	System.out.println("正序输出");
	for (int i = 0; i < a.length; i++) {
	    System.out.println(a[i]);
	}
	System.out.println("倒序输出");
	for (int i = a.length - 1; i >= 0; i--) {
	    System.out.println(a[i]);
	}
    }

}
